package com.kongjs.application.properties;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Getter
@Setter
@ToString
@Component
@ConfigurationProperties(prefix = "maven")
public class MavenProperties implements InitializingBean {
    private List<MavenConfigProperties> configs;

    @Override
    public void afterPropertiesSet() throws Exception {
        log.info("{}", this);
    }
}
